package com.fengye.sphere.api.feign;

import com.fengye.sphere.api.domain.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author gaohaiqing
 * @since 2023/12/9
 */

@FeignClient(name = "sphere-user-service")
public interface UserServiceFeign {

    @GetMapping("/users")
    public List<UserVO> userList();

    @GetMapping("/user/{id}")
    public UserVO user(@PathVariable(value = "id")Long id);
}